package GID

import "sync"

var id = int64(0)
var mutex sync.Mutex

func Alloc() int64 {
	mutex.Lock()
	defer mutex.Unlock()

	id++
	return id
}
